package DesignPattern.Singleton.HungrySingleton;

public class main {
    public static void main(String[] args) {
        int n=3;


    }



    public int climbStairs(int n){
        int a=1,b=1;
        int sum=0;
        for(int i=2;i<=n;i++){
            sum=a+b;
            a=b;
            b=sum;
        }
        return b;

    }
}
